<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<div id="opacity">
  <div style="position: relative"></div>
</div>
<div id="transform">
  <div style="position: relative"></div>
</div>
<script>
var asyncHandle = async_test('This test passes if it does not crash.');
var opacityPlayer = opacity.animate([
  {opacity: 1},
  {opacity: 1},
], 1e6);
var transformPlayer  = transform.animate([
  {transform: 'none'},
  {transform: 'none'},
], 1e6);
requestAnimationFrame(function() {
  opacityPlayer.cancel();
  transformPlayer.cancel();
  requestAnimationFrame(function() {
    asyncHandle.done();
  });
});
</script>
